{% macro input() %}

<div class="index-index-textarea-box">
  <textarea id="textarea" class="index-textarea" placeholder="嗨~~新的一天来发条动态吧" cols="30" rows="10"></textarea>
</div>
<div class="index-fabiao-box">
  <button class="index-btn">发表</button>

  <!-- 现实图片上传 -->
  <input class="index-file" style="display: none;" type="file">

  <!-- 这个input标签是存放图片上传后的url地址 -->
  <input class="index-inp" type="hidden" value="" id="file-img-url">

  <a class="index-a" href="/">
    <svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-card-image" fill="currentColor"
      xmlns="http://www.w3.org/2000/svg">
      <path fill-rule="evenodd"
        d="M14.5 3h-13a.5.5 0 0 0-.5.5v9c0 .013 0 .027.002.04V12l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094L15 9.499V3.5a.5.5 0 0 0-.5-.5zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13zm4.502 3.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z" />
    </svg> 插入一张图片
  </a>
  <!-- 上传成功后的成功信息 -->
  <span class="img-info"></span>
</div>

{% endmacro %}